﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WxBean.Core.Model;
using WxBean.Core.Model.Enum;
using WxBean.Core.Services.Comic;

namespace WxBean.Core.Services
{
    /// <summary>
    /// 漫画抽象工厂
    /// </summary>
    public class ComicFactory
    {
        public static IComic CreateComicAsync(ComicWebSiteType type)
        {
            switch (type)
            {
                ///古风网
                case ComicWebSiteType.GuFeng:
                    return new GuFengComic();

                case ComicWebSiteType.QiManWu:
                    return new QiManWuComic();
                default: return null;
            }
        }

    }
}
